package com.jeecms.cms.manager.assist;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.jeecms.cms.entity.assist.CmsOrder;
import com.jeecms.cms.entity.assist.CmsOrderExt;
import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;

public interface CmsOrderMng {
	public Pagination getPage(Integer siteId, Integer userId, Boolean recommend,
			Boolean checked, boolean desc, boolean cacheable, int pageNo,
			int pageSize);

	@Transactional(readOnly = true)
	public List<CmsOrder> getList(Integer siteId, 
			Boolean recommend, Boolean checked, boolean desc,
			boolean cacheable, int first, int max);

	public CmsOrder findById(Integer id);

	public CmsOrder save(CmsOrder bean, CmsOrderExt ext,
			 String ip);

	public CmsOrder save(CmsUser member, Integer siteId,
			String ip, String title, String content, String email,
			String phone, String qq,String companyName);

	public CmsOrder update(CmsOrder bean, CmsOrderExt ext);

	public CmsOrder deleteById(Integer id);

	public CmsOrder[] deleteByIds(Integer[] ids);
}